package breeze.tool.life.preferences;
import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import breeze.tool.life.App;
import breeze.tool.life.R;
import android.content.res.TypedArray;
import android.widget.TextView;
import brz.breeze.tool_utils.Blog;

public class AppPreference extends Preference{
    
    /*
	*@author BREEZE
	*@date 2021-11-28 09:21:44
    */
    public static final String TAG = "AppPreference";
	
	private View baseView;
    
    public AppPreference(Context context,AttributeSet sets){
		super(context,sets);
	}

	@Override
	protected View onCreateView(ViewGroup parent) {
		baseView = LayoutInflater.from(App.getContext()).inflate(R.layout.preference_default,parent,false);
		TextView text = baseView.findViewById(R.id.preferencedefault_title);
		text.setText(getTitle());
		return baseView;
	}
    
}
